package com.glsc.ngateway.common.base.domainmapper.cmdb;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb.FlowFormDeviceStandardModify;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.cmdb.domainDto.FlowFormDeviceStandardModifyDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: liwei
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormDeviceStandardModifyMapper {

    FlowFormDeviceStandardModifyMapper INSTANCE = Mappers.getMapper(FlowFormDeviceStandardModifyMapper.class);

    @Mapping(target = "appendicesFileList", ignore = true)
    FlowFormDeviceStandardModifyDto domain2dto(FlowFormDeviceStandardModify domain);
    
    List<FlowFormDeviceStandardModifyDto> domain2dto(List<FlowFormDeviceStandardModifyDto> domain);

    @Mapping(target = "appendicesFileIdList", ignore = true)
    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormDeviceStandardModify dto2domain(FlowFormDeviceStandardModifyDto dto);

    List<FlowFormDeviceStandardModify> dto2domain(List<FlowFormDeviceStandardModifyDto> dto);
}
